<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::simulation::gllib::Program类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1simulation_1_1gllib_1_1_program.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1simulation_1_1gllib_1_1_program-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::simulation::gllib::Program类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="glsl__shader_8h_source.html">glsl_shader.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:aafd2caabe80fbdecca4871c07ddee7a4"><td class="memItemLeft" align="right" valign="top"><a id="aafd2caabe80fbdecca4871c07ddee7a4"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1simulation_1_1gllib_1_1_program.html">Program</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:aafd2caabe80fbdecca4871c07ddee7a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66ae7d0b3d0c8b240cddc6dde890907c"><td class="memItemLeft" align="right" valign="top"><a id="a66ae7d0b3d0c8b240cddc6dde890907c"></a>
typedef boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1simulation_1_1gllib_1_1_program.html">Program</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ConstPtr</b></td></tr>
<tr class="separator:a66ae7d0b3d0c8b240cddc6dde890907c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a4860ea975770e75498eb31a8d5a583ea"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1simulation_1_1gllib_1_1_program.html#a4860ea975770e75498eb31a8d5a583ea">Program</a> ()</td></tr>
<tr class="separator:a4860ea975770e75498eb31a8d5a583ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23cefdabb84f8889636ca3c27b9f1f6f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1simulation_1_1gllib_1_1_program.html#a23cefdabb84f8889636ca3c27b9f1f6f">~Program</a> ()</td></tr>
<tr class="separator:a23cefdabb84f8889636ca3c27b9f1f6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8982cdd1520a7c6235d8db63b041c893"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1simulation_1_1gllib_1_1_program.html#a8982cdd1520a7c6235d8db63b041c893">addShaderText</a> (const std::string &amp;text, ShaderType shader_type)</td></tr>
<tr class="separator:a8982cdd1520a7c6235d8db63b041c893"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad3402af44e0f918bff360a661b1b80b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1simulation_1_1gllib_1_1_program.html#aad3402af44e0f918bff360a661b1b80b">addShaderFile</a> (const std::string &amp;text, ShaderType shader_type)</td></tr>
<tr class="separator:aad3402af44e0f918bff360a661b1b80b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62e074bdcf972dd2c86db4791606c00d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1simulation_1_1gllib_1_1_program.html#a62e074bdcf972dd2c86db4791606c00d">link</a> ()</td></tr>
<tr class="separator:a62e074bdcf972dd2c86db4791606c00d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28bc40b3c584d02bb94f93d7bb67c329"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1simulation_1_1gllib_1_1_program.html#a28bc40b3c584d02bb94f93d7bb67c329">isLinked</a> ()</td></tr>
<tr class="separator:a28bc40b3c584d02bb94f93d7bb67c329"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0092355c65d6bdd6122786bb39f5e288"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1simulation_1_1gllib_1_1_program.html#a0092355c65d6bdd6122786bb39f5e288">use</a> ()</td></tr>
<tr class="separator:a0092355c65d6bdd6122786bb39f5e288"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a368c1c944cc77de03f52d9f724a35369"><td class="memItemLeft" align="right" valign="top"><a id="a368c1c944cc77de03f52d9f724a35369"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setUniform</b> (const std::string &amp;name, const Eigen::Vector2f &amp;v)</td></tr>
<tr class="separator:a368c1c944cc77de03f52d9f724a35369"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4aaec9f2fba3ee142fb29821457d9b9c"><td class="memItemLeft" align="right" valign="top"><a id="a4aaec9f2fba3ee142fb29821457d9b9c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setUniform</b> (const std::string &amp;name, const Eigen::Vector3f &amp;v)</td></tr>
<tr class="separator:a4aaec9f2fba3ee142fb29821457d9b9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af526e1ba56e11f8c4d9c8dd05ca56c5e"><td class="memItemLeft" align="right" valign="top"><a id="af526e1ba56e11f8c4d9c8dd05ca56c5e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setUniform</b> (const std::string &amp;name, const Eigen::Vector4f &amp;v)</td></tr>
<tr class="separator:af526e1ba56e11f8c4d9c8dd05ca56c5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedef276ede4b77dfca42cd419303c927"><td class="memItemLeft" align="right" valign="top"><a id="aedef276ede4b77dfca42cd419303c927"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setUniform</b> (const std::string &amp;name, const Eigen::Matrix2f &amp;v)</td></tr>
<tr class="separator:aedef276ede4b77dfca42cd419303c927"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a472d8802df8d12f0cab4557933daec23"><td class="memItemLeft" align="right" valign="top"><a id="a472d8802df8d12f0cab4557933daec23"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setUniform</b> (const std::string &amp;name, const Eigen::Matrix3f &amp;v)</td></tr>
<tr class="separator:a472d8802df8d12f0cab4557933daec23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe0d0a7e030a95b0f5c254a8a5f85279"><td class="memItemLeft" align="right" valign="top"><a id="afe0d0a7e030a95b0f5c254a8a5f85279"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setUniform</b> (const std::string &amp;name, const Eigen::Matrix4f &amp;v)</td></tr>
<tr class="separator:afe0d0a7e030a95b0f5c254a8a5f85279"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a325663e36dca9e6c36305ef7e494ace7"><td class="memItemLeft" align="right" valign="top"><a id="a325663e36dca9e6c36305ef7e494ace7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setUniform</b> (const std::string &amp;name, float v)</td></tr>
<tr class="separator:a325663e36dca9e6c36305ef7e494ace7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b717e61c96dcb46a69885f830134145"><td class="memItemLeft" align="right" valign="top"><a id="a4b717e61c96dcb46a69885f830134145"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setUniform</b> (const std::string &amp;name, int v)</td></tr>
<tr class="separator:a4b717e61c96dcb46a69885f830134145"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18b5e86f2293a8c113a3b6d57cb6f1d7"><td class="memItemLeft" align="right" valign="top"><a id="a18b5e86f2293a8c113a3b6d57cb6f1d7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setUniform</b> (const std::string &amp;name, bool v)</td></tr>
<tr class="separator:a18b5e86f2293a8c113a3b6d57cb6f1d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7968dd0dd9f832a9abc0c489cd0d2be6"><td class="memItemLeft" align="right" valign="top"><a id="a7968dd0dd9f832a9abc0c489cd0d2be6"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getUniformLocation</b> (const std::string &amp;name)</td></tr>
<tr class="separator:a7968dd0dd9f832a9abc0c489cd0d2be6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a134de65e1c57309b6d7a6b4d751e197b"><td class="memItemLeft" align="right" valign="top"><a id="a134de65e1c57309b6d7a6b4d751e197b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>printActiveUniforms</b> ()</td></tr>
<tr class="separator:a134de65e1c57309b6d7a6b4d751e197b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf7b9967d690d4c0686922dbec38ef76"><td class="memItemLeft" align="right" valign="top"><a id="adf7b9967d690d4c0686922dbec38ef76"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>printActiveAttribs</b> ()</td></tr>
<tr class="separator:adf7b9967d690d4c0686922dbec38ef76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07559d5f4ef21f86c04d4987c87aa513"><td class="memItemLeft" align="right" valign="top"><a id="a07559d5f4ef21f86c04d4987c87aa513"></a>
GLuint&#160;</td><td class="memItemRight" valign="bottom"><b>programId</b> ()</td></tr>
<tr class="separator:a07559d5f4ef21f86c04d4987c87aa513"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:accc39d867f19316c54754cc67b02d193"><td class="memItemLeft" align="right" valign="top"><a id="accc39d867f19316c54754cc67b02d193"></a>
static Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>loadProgramFromFile</b> (const std::string &amp;vertex_shader_file, const std::string &amp;fragment_shader_file)</td></tr>
<tr class="separator:accc39d867f19316c54754cc67b02d193"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afba46a7ad9a21a91555bf9a250c7e679"><td class="memItemLeft" align="right" valign="top"><a id="afba46a7ad9a21a91555bf9a250c7e679"></a>
static Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>loadProgramFromText</b> (const std::string &amp;vertex_shader_text, const std::string &amp;fragment_shader_text)</td></tr>
<tr class="separator:afba46a7ad9a21a91555bf9a250c7e679"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a2eb9484d6d83f96e3a2824106c9be882"><td class="memItemLeft" align="right" valign="top"><a id="a2eb9484d6d83f96e3a2824106c9be882"></a>
GLuint&#160;</td><td class="memItemRight" valign="bottom"><b>program_id_</b></td></tr>
<tr class="separator:a2eb9484d6d83f96e3a2824106c9be882"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>A GLSL shader program. </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a4860ea975770e75498eb31a8d5a583ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4860ea975770e75498eb31a8d5a583ea">&#9670;&nbsp;</a></span>Program()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pcl::simulation::gllib::Program::Program </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Construct an empty shader program. </p>

</div>
</div>
<a id="a23cefdabb84f8889636ca3c27b9f1f6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23cefdabb84f8889636ca3c27b9f1f6f">&#9670;&nbsp;</a></span>~Program()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pcl::simulation::gllib::Program::~Program </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destruct the shader program. </p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aad3402af44e0f918bff360a661b1b80b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad3402af44e0f918bff360a661b1b80b">&#9670;&nbsp;</a></span>addShaderFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::simulation::gllib::Program::addShaderFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ShaderType&#160;</td>
          <td class="paramname"><em>shader_type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add a new shader object to the program. </p>

</div>
</div>
<a id="a8982cdd1520a7c6235d8db63b041c893"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8982cdd1520a7c6235d8db63b041c893">&#9670;&nbsp;</a></span>addShaderText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::simulation::gllib::Program::addShaderText </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ShaderType&#160;</td>
          <td class="paramname"><em>shader_type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add a new shader object to the program. </p>

</div>
</div>
<a id="a28bc40b3c584d02bb94f93d7bb67c329"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28bc40b3c584d02bb94f93d7bb67c329">&#9670;&nbsp;</a></span>isLinked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::simulation::gllib::Program::isLinked </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return true if the program is linked. </p>

</div>
</div>
<a id="a62e074bdcf972dd2c86db4791606c00d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62e074bdcf972dd2c86db4791606c00d">&#9670;&nbsp;</a></span>link()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::simulation::gllib::Program::link </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Link the program. </p>

</div>
</div>
<a id="a0092355c65d6bdd6122786bb39f5e288"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0092355c65d6bdd6122786bb39f5e288">&#9670;&nbsp;</a></span>use()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::simulation::gllib::Program::use </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Use the program. </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>simulation/include/pcl/simulation/<a class="el" href="glsl__shader_8h_source.html">glsl_shader.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>simulation</b></li><li class="navelem"><b>gllib</b></li><li class="navelem"><a class="el" href="classpcl_1_1simulation_1_1gllib_1_1_program.html">Program</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
